<template>
  <div class="wrap">
    <div class="price">
      <p><em>￥</em>{{ putong.otPrice }}</p>
      <div class="icon"><van-icon name="share-o" /></div>
    </div>
    <h3>{{ putong.storeName }}</h3>
    <div class="tip">
      <p>原价:{{ putong.price }}</p>
      <p>库存:{{ putong.stock }}</p>
      <p>销量:{{ putong.sales }}</p>
    </div>
    <div class="dough-con">
      <div class="dough">
        <span>优惠卷:</span>
        <p>满0.00减666.00</p>
      </div>
      <div class="fuhao">
        <van-icon name="arrow" />
      </div>
    </div>
    <div class="active">
      <span>活动</span>
      <p><i class="iconfont icon-erji"></i>参与拼团</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "PuTong",
  props: ["putong"],
  data() {
    return {};
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
.wrap {
  padding: 10px;
  background-color: #fff;
  margin: 10px;
  .price {
    display: flex;
    justify-content: space-between;
    p {
      font-size: 24px;
      color: #ff448f;
      em {
        font-size: 12px;
      }
    }
  }
  h3 {
    width: 90vw;
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
  }
  .tip {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    p {
      font-size: 12px;
      color: #82848f;
    }
  }
  .dough-con {
    display: flex;
    justify-content: space-between;
    .dough {
      display: flex;
      align-items: center;
      span {
        font-size: 14px;
        color: #82848f;
      }
      p {
        font-size: 12px;
        border: 1px solid #ff448f;
        padding: 2px;
        color: #ff448f;
      }
    }
  }
  .active {
    display: flex;
    align-items: center;
    margin-top: 10px;
    span {
      color: #82848f;
      font-size: 14px;
    }
    p {
      margin-left: 10px;
      background-color: #ff448f;
      border-radius: 12px;
      padding: 2px 6px;
      color: #fff;
      font-size: 12px;
    }
  }
}
</style>
